import { useSyncExternalStore } from 'react';

import { store } from './store.ts';

export const useProvider = () => useSyncExternalStore(store.subscribe, store.value);